import 'package:flutter/material.dart';
import 'package:myapp/app/theme/app_color.dart';

class AppTabBar extends TabBar {
  AppTabBar(List<String> tabs, {ValueChanged<int>? onTap})
      : super(
          tabs: tabs.map((e) => Padding(padding: EdgeInsets.only(top: 8, bottom: 8), child: Text(e),),).toList(),
          isScrollable: true,
          labelColor: AppColor.red80,
          unselectedLabelColor: AppColor.hex_333,
          indicatorSize: TabBarIndicatorSize.label,
          indicatorColor: AppColor.red80,
          onTap: onTap,
        );
}
